module.exports = {
    // hash模式，publicPath 配置为"";history模式。，需要配置为"/"
    publicPath: "",
    outputDir: "dist",
    assetsDir: "public",
    indexPath: "index.html",
    //配置代理
    devServer: {
        proxy: {
            "/api": {
                //后端的地址
                target: "http://localhost:3000",
                ws: true,
                changeOrigin: true
            }
        }
    }
}